﻿"use strict";
define(["service/service", "service/httpService"], function (service) {
    service.factory("bazaarOrderService", function ($location, httpService) {
        var methods = {
            gets: function (params) {
                return httpService.get("/admin/bazaarOrder/gets", params);
            },
            get: function (params) {
                return httpService.get("/admin/bazaarOrder/get", params);
            },
            receive: function (id) {
                return httpService.post("/admin/bazaarOrder/receive", { id: id });
            },
            cancle: function (id) {
                return httpService.post("/admin/bazaarOrder/cancle", {id:id});
            },
            save: function (params) {
                return httpService.post("/admin/bazaarOrder/save", params);
            }
        }
        return methods;
    });
});